<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><{$site_title}>管理中心</title>
<{include file="js.html"}>
<script>
	function pwd(id){
		$.post(
			'admin_list.php?action=pwd',
			{id:id},
			function(data){
				if(data==1){
					alert('密码重置成功');
				}else{
					alert('密码重置失败');
				}
			}
		)
	}
	
</script>
</head>

<body>
<div class="box">
<div style="background:url(images/mainbj.jpg) repeat-x; line-height:31px; height:31px;">
<table width="262" height="31" border="0" cellpadding="0" cellspacing="0">
<tr><td width="41" align="center">
<img src="images/biao1.jpg" /></td>
<td width=""><strong>当前位置</strong>：管理员&gt;管理员列表</td>
</tr></table>
</div>

<table width="849" cellpadding="0" cellspacing="0" class="lefttab">
<tr><td colspan="7"><div style="height:26px; text-align:left; line-height:26px; background:url(images/xbj1.jpg) repeat-x; border:1px solid #e9f5fa;font-weight:bold;">&nbsp;&nbsp;管理员列表</div>
</td></tr>
<tr style="background:#dceff6;">
  <td><strong>ID</strong></td>
  <td><strong>用户名</strong></td>
  <td><strong>权限</strong></td>
  <td><strong>最后登录时间</strong></td>
<td><strong>管理操作</strong></td>
</tr>
<{foreach item=admin from=$admin}>
<tr>
  <td align="center">
    &nbsp;<{if $admin.flag!="1"}><input type="checkbox" name="checkbox" value="<{$admin.id}>" /><{/if}>
  </td>
  <td> <{$admin.name}></td>
  <td> <{$admin.group_name}></td>
  <td style="color:#666666;"><{$admin.last_login}></td>
  <td class="xiugai">
  	<a href="javascript:void(0)" onclick="return pwd('<{$admin.id}>');">密码重置</a>
  </td>
</tr>
<{/foreach}>
</table>
  <div class="fenye" >
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;&nbsp;<a onclick='allcheck()' href="javascript:void(0)">全选</a> | <a onclick="return Del()" href="javascript:void(0)">删除</a> &nbsp;&nbsp;&nbsp;&nbsp;<{$pages}></p>
  </div>

</div>
</body>
</html>